﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace DLLCOM
{
    /// <summary>
    /// ComTestXaml.xaml 的交互逻辑
    /// </summary>
    public partial class ComTestXaml : Page
    {
        public ComTestXaml()
        {
            InitializeComponent();
        }
        private void comdoAdd_Click(object sender, RoutedEventArgs e)
        {
            string ret = ComHelper.Add("86B29283-C9AF-4BE5-A827-7518270AC583", "Simulation Transaction", int.Parse(comadd1.Text), int.Parse(comadd2.Text));
            comadd_res.Text = String.Concat(ret);
        }

        private void comdoMulti_Click(object sender, RoutedEventArgs e)
        {
            string ret = ComHelper.Multi("86B29283-C9AF-4BE5-A827-7518270AC583", "Simulation Transaction", int.Parse(commulti1.Text), int.Parse(commulti2.Text));
            commulti_res.Text = String.Concat(ret);
        }

        private void comdoFra_Click(object sender, RoutedEventArgs e)
        {
            string ret = ComHelper.Factorial("86B29283-C9AF-4BE5-A827-7518270AC583", "Simulation Transaction", int.Parse(comfra1.Text));
            comfra_res.Text = String.Concat(ret);
        }
    }
}
